/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Business;

/**
 *
 * @author mapxinh
 */
public class BillDetails_BS {

    private int bdID;
    private int bID;
    private int pID;
    private String pName;
    private int bdQuantity;
    private float bdSellPrice;
    private boolean bdReturnPro;
    private String bdDate;
    private int bStatus;

    
    public BillDetails_BS(int pID, String pName, float bdSellPrice, int bdQuantity) {
        this.pID = pID;
        this.pName = pName;
        this.bdSellPrice = bdSellPrice;
        this.bdQuantity = bdQuantity;
    }

    public BillDetails_BS(int newId, int pid, float sellPrice, int quantity, String orDate) {
         this.bID = newId;
        this.pID = pid;
        this.bdSellPrice = sellPrice;
        this.bdQuantity = quantity;
        this.bdDate = orDate;
    }

    public BillDetails_BS(int pid, int quantity) {
        this.pID = pid;
        this.bdQuantity = quantity;
    }

    public int getBStatus() {
        return bStatus;
    }
    public void setBStatus(int bStatus) {
        this.bStatus = bStatus;
    }

    public int getBdID() {return bdID;}
    public void setBdID(int bdID) {this.bdID = bdID;}

    public int getBID() {return bID;}
    public void setBID(int bID) {this.bID = bID;}

    public int getPID() {return pID;}
    public void setPID(int pID) {this.pID = pID;}

    public String getPName() {return pName;}
    public void setPName(String pName) {this.pName = pName;}

    public int getBdQuantity() {return bdQuantity;}
    public void setBdQuantity(int bdQuantity) {this.bdQuantity = bdQuantity;}

    public float getBdSellPrice() {return bdSellPrice;}
    public void setBdSellPrice(float bdSellPrice) {this.bdSellPrice = bdSellPrice;}

    public boolean getBdReturnPro() {return bdReturnPro;}
    public void setBdReturnPro(boolean bdReturnPro) {this.bdReturnPro = bdReturnPro;}

    public String getBdDate() {return bdDate;}
    public void setBdDate(String bdDate) {this.bdDate = bdDate;}

    public float getSubTotal() {
        return this.bdQuantity * this.bdSellPrice;
    }

}
